home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-M68K / HARDIRQ.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  480b  |  19 lines

  1. #ifndef __M68K_HARDIRQ_H
  2. #define __M68K_HARDIRQ_H
  3.  
  4. #include <linux/tasks.h>
  5.  
  6. extern unsigned int local_irq_count[NR_CPUS];
  7.  
  8. #define in_interrupt() (local_irq_count[smp_processor_id()] + local_bh_count[smp_processor_id()] != 0)
  9.  
  10. #define hardirq_trylock(cpu)    (local_irq_count[cpu] == 0)
  11. #define hardirq_endlock(cpu)    do { } while (0)
  12.  
  13. #define hardirq_enter(cpu)    (local_irq_count[cpu]++)
  14. #define hardirq_exit(cpu)    (local_irq_count[cpu]--)
  15.  
  16. #define synchronize_irq()    barrier()
  17.  
  18. #endif
  19.